package org.bai.meetingfilm.backend.film;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName BackendFilmApplication
 * @Description BackendFile启动类
 * @Author bai
 * @Date 2021/7/18 17:16
 * @Version 1.0
 **/
@MapperScan(basePackages = {"org.bai.meetingfilm.backend.film"})
@ComponentScan(basePackages = {"org.bai.meetingfilm"})
@EnableDiscoveryClient
@SpringBootApplication
public class BackendFilmApplication {

    private static final Logger LOGGER = LoggerFactory.getLogger(BackendFilmApplication.class);

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(BackendFilmApplication.class);
        application.setWebApplicationType(WebApplicationType.SERVLET);
        application.run(args);
        LOGGER.info("show film start success");
    }
}
